<%@page contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="guest.*"%>

<jsp:useBean id="guestDao" type="guest.GuestDAO" scope="request" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>JPA Guestbook Web Application Tutorial</title>
</head>

<body>
	<form method="POST" action="guest.html">
		Name: <input type="text" name="name" /> <input type="submit"
			value="Add" />
	</form>

	<hr/>
	<ol>
		<% for (Guest guest : guestDao.getAllGuests()) { %>
				<li><%=guest%></li>
		<% } %>
	</ol>
	<hr/>

	<iframe src="http://www.objectdb.com/pw.html?spring-eclipse"
		frameborder="0" scrolling="no" width="100%" height="30"> </iframe>
</body>
</html>